<template>
  <a-card :bordered="false" title="">
    <this-table ref="table" />
  </a-card>
</template>

<script>
import thisTable from './table'
export default {
  components: { thisTable },
  created() {
    const handler = (res) => {
      if (res.type === 'took-expired') {
        this.$refs.table.$refs.table.onRefresh()
      }
    }
    this.$channel.bind('buy-change', handler)
    this.$once('hook:beforeDestroy', () => {
      this.$channel.unbind('buy-change', handler)
    })
  },
}
</script>

